Markups being something of my speciality I feel I must give you the answer to this one. =]
All line numbers should be from a clean 6.0.1 install, but might differ somewhat. As always, remember to make a backup of all your files before doing any changes. Report any problems you have and I'll try to fix them as soon as possible.
Step 1Find these lines (should be at line 81) in sendprivate.php:
code:
// --------------------------------------------------------------
// Give them a form to fill out so they can send a private message
$html -> send_header("{$ubbt_lang['PRIV_HEAD']} $User",$Cat,0,$user);
And add this line before it:
code:
$instant_ubbcode = $html -> instant_ubbcode();
Step 2Now you will have to do some changes to your sendprivate.tmpl file.
Find this line (at line 18):
code:
<form method="post" action="{$config['phpurl']}/sendmessage.php">
And change it to this:
code:
<form name="replier" method="post" action="{$config['phpurl']}/sendmessage.php">
Find this line (at line 66):
code:
<textarea cols="$TextCols" rows="$TextRows" class="formboxes" name="Message">$RawBody</textarea>
And change it to this:
code:
<textarea cols="$TextCols" rows="$TextRows" class="formboxes" name="Body" onkeyup="storeCaret(this);" onclick="storeCaret(this);">$RawBody</textarea>
$instant_ubbcode
Step 3In sendmessage.tmpl at line 18 you will find this line:
code:
<form method="post" action="{$config['phpurl']}/sendmessage.php">
Which you will need to change into this:
code:
<form name="replier" method="post" action="{$config['phpurl']}/sendmessage.php">
Then find this line (at line 42):
code:
<input type="hidden" name="Message" value="$FormBody" />
And change it into this:
code:
<input type="hidden" name="Body" value="$FormBody" />
And this line at line 108:
code:
<textarea cols="$TextCols" rows="$TextRows" class="formboxes" name="Message">$RawBody</textarea>
Should be changed into this:
code:
<textarea cols="$TextCols" rows="$TextRows" class="formboxes" name="Body" onkeyup="storeCaret(this);" onclick="storeCaret(this);">$RawBody</textarea>
$instant_ubbcode
Step 4Next is an important step, you will also have to change in sendmessage.php or you won't be able to send the message.
Change this line (at 39):
code:
$RawBody = $Message;
To this:
code:
$RawBody = $Body;
$Message = $Body;
Step 5Open up the template file mess_handler.tmpl and change the things mentioned below:
Find this line at line 18:
code:
<form method="post" action="{$config['phpurl']}/mess_reply.php">
And change it into this:
code:
<form name="replier" method="post" action="{$config['phpurl']}/mess_reply.php">
The find this line (at line 33):
code:
<textarea name="Message" cols="$TextCols" rows="$TextRows" wrap="soft" class="formboxes"></textarea>
And change into this:
code:
<textarea name="Body" cols="$TextCols" rows="$TextRows" wrap="soft" class="formboxes" onkeyup="storeCaret(this);" onclick="storeCaret(this);"></textarea>
$instant_ubbcode
Step 6Open the mess_handler.php file and change the following:
Right before this line (at 111):
code:
include("$thispath/templates/$tempstyle/mess_handler.tmpl");
Add this line:
code:
$instant_ubbcode = $html -> instant_ubbcode();
Step 7Open mess_reply.php and do the following:
Find this line (at 43):
code:
$RawBody = $Message;
And change it into this:
code:
$RawBody = $Body;
$Message = $Body;
The find these lines (at 32):
code:
$html -> send_header("{$ubbt_lang['REPLY_PREV']} $Sendto",$Cat,0,$user);
include("$thispath/templates/$tempstyle/mess_reply.tmpl");
$html -> send_footer();
And add this right before:
code:
$instant_ubbcode = $html -> instant_ubbcode();
Step 8Open the template mess_reply.tmpl and do the following:
Locate this line (at 42):
code:
<input type="hidden" name = "Message" value="$FormMessage" />
And change it into this:
code:
<input type="hidden" name = "Body" value="$FormMessage" />
Locate this line (at 58):
code:
<form method = "post" action = "{$config['phpurl']}/mess_reply.php">
And replace it with this:
code:
<form name="replier" method="post" action = "{$config['phpurl']}/mess_reply.php">
Then find this line (at 84):
code:
<textarea name = "Message" cols="$TextCols" rows="$TextRows" wrap="soft" class="formboxes">$RawBody</textarea>
And replace it with this:
code:
<textarea name="Body" cols="$TextCols" rows="$TextRows" wrap="soft" class="formboxes" class="formboxes" onkeyup="storeCaret(this);" onclick="storeCaret(this);">$RawBody</textarea>
$instant_ubbcode